package io;

import java.io.File;
import java.io.IOException;

public class FileDemo1 {
    public static void main(String[] args) throws IOException {
        File file = new File("d:/text.txt");
        file.getParent();
        file.getName();
        file.getPath();
        file.getAbsolutePath();
        file.getCanonicalPath();
    }
}
